package com.ruoyi.logistic.enums;

/**
 * 结算类型
 *
 * @author ruoyi
 */
public enum NetworkWeightDifferenceEnum {
    settlementTime("settlementTime", "结算时间"),
    transportCode("transportCode", "运单号"),
    networkNameId("networkNameId", "网点信息"),
    leaveCenter("leaveCenter", "运转中心"),
    settleType("settleType", "结算类型"),
    settleObject("settleObject", "结算对象"),
    packageCode("packageCode", "包号"),
    networkWeight("networkWeight", "网点称重"),
    settleWeightSource("settleWeightSource", "重量来源"),
    settleWeight("settleWeight", "结算重量"),
    settleNetworkWeight("settleNetworkWeight", "结算网点重量"),
    centreWeight("centreWeight", "中心重量"),
    centerNetworkWeight("centerNetworkWeight", "中心网点重量"),
    volumeWeight("volumeWeight", "体积重"),
    hqSettleWeight("hqSettleWeight", "总部结算重量");

    private final String code;
    private final String info;

    NetworkWeightDifferenceEnum(String code, String info) {
        this.code = code;
        this.info = info;
    }

    public String getCode() {
        return code;
    }

    public String getInfo() {
        return info;
    }

    public static String getValue(String code) {
        if (code == null) {
            return "";
        }
        for (NetworkWeightDifferenceEnum value : NetworkWeightDifferenceEnum.values()) {
            if (value.code.equals(code)) {
                return value.info;
            }
        }
        return "";
    }
}
